package com.geeaks.learn.cas.future;

import static org.junit.Assert.*;
import java.util.concurrent.CompletableFuture;

public class CompletableFutureTest {
	
	public static void main(String[] args) {
		completedFutureExample();
	}
	
	static void completedFutureExample() {
		CompletableFuture<String> cf = CompletableFuture.completedFuture("message");
		assertTrue(cf.isDone());
		assertEquals("message", cf.getNow(null));
	}
}
